home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1996 April
/
Macworld (1996-04).dmg
/
Educational Demos
/
Goldilocks Gamebook
/
Goldilocks.DIR
/
00001_Script_1
next >
Wrap
Text File
|
1995-11-20
|
2KB
|
93 lines
-- Goldilocks Gamebook
-- ©1995 BeachWare Inc.
on startMovie
global pageCount,naraCount,theGame
resetAll
installMenu 501
put "1G.DIR" into theGame
put 1 into pageCount
put 1 into naraCount
set the visible of sprite 9 to false
set the visible of sprite 10 to false
set the visible of sprite 17 to false
--sound stop 1
--sound stop 2
end
on naraCheck
global naraCount
if soundBusy(1) = False then
if naraCount = 0 then
set the visible of sprite 9 to false
set the visible of sprite 10 to false
set the visible of sprite 17 to true
if soundBusy(1) = false then
--sound playFile 1,"Outside.AIF"
puppetSound "Outside.AIF"
end if
end if
if naraCount = 2 then
--sound playFile 1, "1B.AIF"
puppetSound "1B.AIF"
put 0 into naraCount
set the visible of sprite 9 to false
set the visible of sprite 10 to true
end if
if naraCount = 1 then
--sound playFile 1, "1A.AIF"
sound stop 1
puppetSound "1A.AIF"
put 2 into naraCount
set the visible of sprite 9 to true
end if
end if
end
on checkPicture
global p1,p2,p3,p4,p5
if p1 = 1 then
if p2 = 1 then
if p3 = 1 then
if p4 = 1 then
if p5 = 1 then
--puppetSound "yea.AIF"
repeat with i = 1 to 1000
end repeat
repeat with j = 1 to 20
if the visible of sprite 12 = false then
set the visible of sprite 12 to true
else
set the visible of sprite 12 to false
end if
updateStage
end repeat
set the visible of sprite 7 to false
set the visible of sprite 8 to false
set the visible of sprite 9 to false
set the visible of sprite 10 to false
puppetSprite 2, False
puppetSprite 3, False
puppetSprite 4, False
puppetSprite 5, False
puppetSprite 6, False
go to "Success"
end if
end if
end if
end if
end if
end
on resetAll
sound stop 1
sound stop 2
repeat with channel = 1 to 48
set the visible of sprite channel to TRUE
puppetSprite channel, FALSE
end repeat
end